package com.zx.jhpt.po;

import javax.persistence.*;


import java.util.Date;
import java.util.List;

/**
 * Replymessage entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "REPLYMESSAGE")
public class Replymessage implements java.io.Serializable {

	// Fields

	private String id;
	private String deptid;//部门id
	private String deptname;//部门名称
	private Date hcsj;//核查时间
	//private String hcsj;//核查时间
	private String fxwt;//反馈问题
	private String gdwfzr;//各单位负责人
	private String gdwzgld;//各单位主管领导
	private Date fksj;//反馈时间
	private String sftghzd;//是否提供回执单
	private String gdwfkjg;//各单位反馈结果
	private Date yjzgwcsj;//预计整改完成时间
	private String qtbz;//其他
	private String fxid;//风险id
	//插入fxfkjz表中的数据，根据fxid来匹配
	private String class1;//一类
	private String class2;//二类
	private String bmjkr;//部门接口人
	private String fxdbmfzr;//风险点部门负责人
	private String fxdmc;//风险点名称
	private String fxcyjtms;//风险点成因具体描述
	private String fxjkkj;//风险监控口径
	private String fxdj;//风险等级
	private String zdflyjsox;//制度法律依据
	private String fxfsqfkcs;//风险发生前防控措施
	private String fxfshfkcs;//风险发生后防控措施
	private String cjjkpv;//抽检监控频率
	private String jccs;//奖惩措施
	private String mqhcsd;//目前稽查手段
	private String jlbd;//记录表单
	private Integer orders;
	
    private Integer status;//状态，1完成，0未完成
    
    
    
	private List<Enclosure> enclosures;
	// Constructors

	/** default constructor */
	public Replymessage() {
	}

	/** minimal constructor */
	public Replymessage(String id) {
		this.id = id;
	}

	/** full constructor */
	public Replymessage(String id, String deptid, String deptname, Date hcsj,
			String fxwt, String gdwfzr, String gdwzgld, Date fksj,
			String sftghzd, String gdwfkjg, Date yjzgwcsj, String qtbz,
			String fxid,String class1, String class2, String bmjkr,
			String fxdbmfzr, String fxdmc, String fxcyjtms, String fxjkkj,
			String fxdj, String zdflyjsox, String fxfsqfkcs, String fxfshfkcs,
			String cjjkpv, String jccs, String mqhcsd, String jlbd,Integer order) {
		this.id = id;
		this.deptid = deptid;
		this.deptname = deptname;
		this.hcsj = hcsj;
		this.fxwt = fxwt;
		this.gdwfzr = gdwfzr;
		this.gdwzgld = gdwzgld;
		this.fksj = fksj;
		this.sftghzd = sftghzd;
		this.gdwfkjg = gdwfkjg;
		this.yjzgwcsj = yjzgwcsj;
		this.qtbz = qtbz;
		this.fxid = fxid;
		this.class1 = class1;
		this.class2 = class2;
		this.bmjkr = bmjkr;
		this.fxdbmfzr = fxdbmfzr;
		this.fxdmc = fxdmc;
		this.fxcyjtms = fxcyjtms;
		this.fxjkkj = fxjkkj;
		this.fxdj = fxdj;
		this.zdflyjsox = zdflyjsox;
		this.fxfsqfkcs = fxfsqfkcs;
		this.fxfshfkcs = fxfshfkcs;
		this.cjjkpv = cjjkpv;
		this.jccs = jccs;
		this.mqhcsd = mqhcsd;
		this.jlbd = jlbd;
		this.orders = orders;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "DEPTID", length = 64)
	public String getDeptid() {
		return this.deptid;
	}

	public void setDeptid(String deptid) {
		this.deptid = deptid;
	}

	@Column(name = "DEPTNAME", length = 64)
	public String getDeptname() {
		return this.deptname;
	}

	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "HCSJ")
	public Date getHcsj() {
		return this.hcsj;
	}

	public void setHcsj(Date hcsj) {
		this.hcsj = hcsj;
	}

	@Column(name = "FXWT", length = 200)
	public String getFxwt() {
		return this.fxwt;
	}

	public void setFxwt(String fxwt) {
		this.fxwt = fxwt;
	}

	@Column(name = "GDWFZR", length = 64)
	public String getGdwfzr() {
		return this.gdwfzr;
	}

	public void setGdwfzr(String gdwfzr) {
		this.gdwfzr = gdwfzr;
	}

	@Column(name = "GDWZGLD", length = 64)
	public String getGdwzgld() {
		return this.gdwzgld;
	}

	public void setGdwzgld(String gdwzgld) {
		this.gdwzgld = gdwzgld;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FKSJ")
	public Date getFksj() {
		return this.fksj;
	}

	public void setFksj(Date fksj) {
		this.fksj = fksj;
	}

	@Column(name = "SFTGHZD", length = 64)
	public String getSftghzd() {
		return this.sftghzd;
	}

	public void setSftghzd(String sftghzd) {
		this.sftghzd = sftghzd;
	}

	@Column(name = "GDWFKJG", length = 200)
	public String getGdwfkjg() {
		return this.gdwfkjg;
	}

	public void setGdwfkjg(String gdwfkjg) {
		this.gdwfkjg = gdwfkjg;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "YJZGWCSJ")
	public Date getYjzgwcsj() {
		return this.yjzgwcsj;
	}

	public void setYjzgwcsj(Date yjzgwcsj) {
		this.yjzgwcsj = yjzgwcsj;
	}

	@Column(name = "QTBZ", length = 200)
	public String getQtbz() {
		return this.qtbz;
	}

	public void setQtbz(String qtbz) {
		this.qtbz = qtbz;
	}

	@Column(name = "FXID", length = 64)
	public String getFxid() {
		return this.fxid;
	}

	public void setFxid(String fxid) {
		this.fxid = fxid;
	}
	
	@Column(name = "CLASS1", length = 400)
	public String getClass1() {
		return this.class1;
	}

	public void setClass1(String class1) {
		this.class1 = class1;
	}

	@Column(name = "CLASS2", length = 400)
	public String getClass2() {
		return this.class2;
	}

	public void setClass2(String class2) {
		this.class2 = class2;
	}

	@Column(name = "BMJKR", length = 400)
	public String getBmjkr() {
		return this.bmjkr;
	}

	public void setBmjkr(String bmjkr) {
		this.bmjkr = bmjkr;
	}

	@Column(name = "FXDBMFZR", length = 400)
	public String getFxdbmfzr() {
		return this.fxdbmfzr;
	}

	public void setFxdbmfzr(String fxdbmfzr) {
		this.fxdbmfzr = fxdbmfzr;
	}

	@Column(name = "FXDMC", length = 400)
	public String getFxdmc() {
		return this.fxdmc;
	}

	public void setFxdmc(String fxdmc) {
		this.fxdmc = fxdmc;
	}

	@Column(name = "FXCYJTMS", length = 400)
	public String getFxcyjtms() {
		return this.fxcyjtms;
	}

	public void setFxcyjtms(String fxcyjtms) {
		this.fxcyjtms = fxcyjtms;
	}

	@Column(name = "FXJKKJ", length = 400)
	public String getFxjkkj() {
		return this.fxjkkj;
	}

	public void setFxjkkj(String fxjkkj) {
		this.fxjkkj = fxjkkj;
	}

	@Column(name = "FXDJ", length = 400)
	public String getFxdj() {
		return this.fxdj;
	}

	public void setFxdj(String fxdj) {
		this.fxdj = fxdj;
	}

	@Column(name = "ZDFLYJSOX", length = 400)
	public String getZdflyjsox() {
		return this.zdflyjsox;
	}

	public void setZdflyjsox(String zdflyjsox) {
		this.zdflyjsox = zdflyjsox;
	}

	@Column(name = "FXFSQFKCS", length = 400)
	public String getFxfsqfkcs() {
		return this.fxfsqfkcs;
	}

	public void setFxfsqfkcs(String fxfsqfkcs) {
		this.fxfsqfkcs = fxfsqfkcs;
	}

	@Column(name = "FXFSHFKCS", length = 400)
	public String getFxfshfkcs() {
		return this.fxfshfkcs;
	}

	public void setFxfshfkcs(String fxfshfkcs) {
		this.fxfshfkcs = fxfshfkcs;
	}

	@Column(name = "CJJKPV", length = 400)
	public String getCjjkpv() {
		return this.cjjkpv;
	}

	public void setCjjkpv(String cjjkpv) {
		this.cjjkpv = cjjkpv;
	}

	@Column(name = "JCCS", length = 400)
	public String getJccs() {
		return this.jccs;
	}

	public void setJccs(String jccs) {
		this.jccs = jccs;
	}

	@Column(name = "MQHCSD", length = 400)
	public String getMqhcsd() {
		return this.mqhcsd;
	}

	public void setMqhcsd(String mqhcsd) {
		this.mqhcsd = mqhcsd;
	}

	@Column(name = "JLBD", length = 400)
	public String getJlbd() {
		return this.jlbd;
	}

	public void setJlbd(String jlbd) {
		this.jlbd = jlbd;
	}
	
	@Column(name = "ORDERS", precision = 22, scale = 0)
	public Integer getOrders() {
		return this.orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}
	

    @Column(name = "STATUS", nullable = false, precision = 1, scale = 0)
    public Integer getStatus(){
        return status;
    }
    public void setStatus(Integer status){
        this.status = status;
    }

    @Transient
    public List<Enclosure> getEnclosures() {
        return enclosures;
    }

    public void setEnclosures(List<Enclosure> enclosures) {
        this.enclosures = enclosures;
    }
}